<div>
  <ul class="nav nav-pills">
    {{edit-category-tab panels=panels selectedTab=selectedTab tab="general"}}
    {{#unless model.isUncategorizedCategory}}
      {{edit-category-tab panels=panels selectedTab=selectedTab tab="security"}}
    {{/unless}}
    {{edit-category-tab panels=panels selectedTab=selectedTab tab="settings"}}
    {{edit-category-tab panels=panels selectedTab=selectedTab tab="images"}}
    {{edit-category-tab panels=panels selectedTab=selectedTab tab="topic-template"}}
    {{#if siteSettings.tagging_enabled}}
      {{edit-category-tab panels=panels selectedTab=selectedTab tab="tags"}}
    {{/if}}
  </ul>

  {{#d-modal-body}}
    {{#each panels as |tab|}}
      {{component tab selectedTab=selectedTab category=model}}
    {{/each}}
  {{/d-modal-body}}

  <div class="modal-footer">
    {{d-button id="save-category" class="btn-primary" disabled=disabled action="saveCategory" label=saveLabel}}

    {{#if model.can_delete}}
      {{d-button class="btn-danger pull-right"
                 disabled=deleteDisabled
                 action="deleteCategory"
                 icon="trash-o"
                 label="category.delete"}}
    {{else}}
      <div class="cannot_delete_reason">
        {{{model.cannot_delete_reason}}}
      </div>
    {{/if}}
  </div>
</div>
